package mysql

type User struct {
	Username string `gorm:"type:varchar(30);comment:账号;"`
	Password string `gorm:"type:varchar(30);comment:密码;"`
	Mobile   string `gorm:"type:char(11);comment:手机号;"`
}

func Login(username string) error {
	return Db.Where("username", username).First(&username).Error
}
